package com.cineplanet.dew.modelo;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Time;


/**
 * The persistent class for the peliculas_por_cine database table.
 * 
 */
@Entity
@Table(name="peliculas_por_cine")
public class PeliculasPorCine implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private PeliculasPorCinePK id;

	@Column(name="hora_fin")
	private Time horaFin;

	@Column(name="hora_inicio")
	private Time horaInicio;

	//bi-directional many-to-one association to Cine
    @ManyToOne
	@JoinColumn(name="id_cine", insertable=false, updatable=false)
	private Cine cine;

	//bi-directional many-to-one association to Pelicula
    @ManyToOne
	@JoinColumn(name="id_pelicula", insertable=false, updatable=false)
	private Pelicula pelicula;

    public PeliculasPorCine() {
    }

	public PeliculasPorCinePK getId() {
		return this.id;
	}

	public void setId(PeliculasPorCinePK id) {
		this.id = id;
	}
	
	public Time getHoraFin() {
		return this.horaFin;
	}

	public void setHoraFin(Time horaFin) {
		this.horaFin = horaFin;
	}

	public Time getHoraInicio() {
		return this.horaInicio;
	}

	public void setHoraInicio(Time horaInicio) {
		this.horaInicio = horaInicio;
	}

	public Cine getCine() {
		return this.cine;
	}

	public void setCine(Cine cine) {
		this.cine = cine;
	}
	
	public Pelicula getPelicula() {
		return this.pelicula;
	}

	public void setPelicula(Pelicula pelicula) {
		this.pelicula = pelicula;
	}
	
}